home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Diamond Collection
/
The Diamond Collection (Software Vault)(Digital Impact).ISO
/
cdr37
/
regreq.zip
/
REGREQ.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1995-03-20
|
5KB
|
291 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 3.1O (Encryption type I) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Boolean BOOLEAN001
Integer INTEGER001
Integer INTEGER003
Integer INTEGER004
Integer INTEGER005
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
String STRING007
String STRING008
String STRING009
String STRING010
String STRING011
String STRING012
String STRING013
String STRING014
String STRING015
String STRING016
String STRING017
String STRING018
String STRING019
String STRING020
String STRING021
String STRING022
String STRING023
String STRING024
String STRING025
String STRING026
String STRING027
String STRING028
Declare Function FUNCTION002(Integer INTEGER002) String
;------------------------------------------------------------------------------
Goto LABEL004
End
INTEGER001 = Abs(0 - 0)
EndFunc
;------------------------------------------------------------------------------
Function FUNCTION002(Integer INTEGER002) String
Boolean BOOLEAN001
String STRING002
String STRING003
BOOLEAN001 = 0
STRING002 = ""
:LABEL001
If (BOOLEAN001) Goto LABEL003
FGet INTEGER002, STRING002
If (Ferr(INTEGER002)) Then
BOOLEAN001 = 1
Else
If ((Trim(STRING002, " ") == "") || (Left(STRING002, 1) == ";")) Goto LABEL002
Goto LABEL003
:LABEL002
Goto LABEL001
Endif
:LABEL003
If (BOOLEAN001 == 1) STRING002 = ""
FUNCTION002 = STRING002
EndFunc
STRING004 = GetEnv("PCBDRIVE") + GetEnv("PCBDIR") + "\PCBOARD.SYS"
STRING005 = ReadLine(PCBDat(), 27) + "PCBTEXT"
If (ReadLine(PCBDat(), 74) == 0) Then
STRING003 = STRING005
Else
INTEGER003 = FNext()
FOpen INTEGER003, STRING004, 0, 0
FSeek INTEGER003, 80, 0
FRead INTEGER003, STRING006, 4
FClose INTEGER003
STRING005 = Trim(STRING005 + STRING006, " ")
If (Right(STRING005, 1) == ".") STRING005 = Trim(STRING005, ".")
STRING003 = STRING005
Endif
EndFunc
STRING008 = GetEnv("PCBDRIVE") + GetEnv("PCBDIR") + "\PCBOARD.SYS"
If (ReadLine(PCBDat(), 74) == 0) Then
STRING007 = ""
Else
INTEGER004 = FNext()
FOpen INTEGER004, STRING008, 0, 0
FSeek INTEGER004, 80, 0
FRead INTEGER004, STRING009, 4
FClose INTEGER004
STRING009 = Trim(STRING009, " ")
If (Left(STRING009, 1) == ".") STRING009 = ""
STRING007 = STRING009
Endif
EndFunc
:LABEL004
STRING010 = PPEPath() + PPEName() + ".CFG"
STRING016 = PPEPath() + "RRTMPMSG.$$$"
STRING018 = "SYSTEM DAEMON"
STRING021 = PPEName() + ": notice"
STRING014 = "D;" + STRING012
STRING015 = "Z"
FOpen INTEGER005, STRING010, 0, 0
If (Ferr(INTEGER005)) Then
Log 0, "Error opening " + STRING010
PrintLn "An Error Occured. Please try back another time...."
Else
STRING011 = FUNCTION002(INTEGER005)
STRING012 = FUNCTION002(INTEGER005)
STRING019 = FUNCTION002(INTEGER005)
If (STRING019 == "") STRING019 = "SYSOP"
STRING020 = FUNCTION002(INTEGER005)
If (STRING020 == "") STRING020 = "0"
STRING017 = Upper(FUNCTION002(INTEGER005))
If ((STRING017 <> "N") && (STRING017 <> "R")) STRING017 = "R"
FClose INTEGER005
Cls
DispFile STRING011, 1 + 4
Newline
STRING013 = "Y"
InputYN "Would you like to download the Access Request File", STRING013, 10
STRING013 = Upper(STRING013)
Newline
If (STRING013 == NoChar()) Goto LABEL005
InputStr "Please provide your Real Name", STRING022, 10, 45, Mask_Alpha(), 256 + 2
Newline
PrintLn "@X0BChoose a Transfer Protocol"
InputStr "(X)-modem, (Y)-Modem, or (Z)-modem", STRING015, 11, 1, "xzyXYZ", 256 + 2
STRING014 = STRING014 + ";" + STRING015
Command 0, STRING014
INTEGER005 = FNext()
FCreate INTEGER005, STRING016, 1, 3
FPutLn INTEGER005, STRING022
FPutLn INTEGER005, "has downloaded the Request Registration File."
FClose INTEGER005
Goto LABEL006
:LABEL005
STRING013 = "Y"
InputYN "Would you like to an application Mailed to you", STRING013, 10
STRING013 = Upper(STRING013)
Newline
If (STRING013 == NoChar()) Goto LABEL007
Cls
PrintLn "@X0APlease Provide the Following Information@X07"
Newlines 2
STRING013 = ""
PromptStr 259, STRING013, 25, Mask_Alpha(), 2 + 4 + 256
STRING022 = STRING013
STRING013 = ""
PromptStr 260, STRING013, 25, Mask_Alpha(), 2 + 4 + 256
STRING022 = STRING022 + STRING013
DispText 698, 64
PromptStr 699, STRING023, 50, Mask_Alpha(), 2 + 4 + 256
PromptStr 700, STRING024, 50, Mask_Alpha(), 2 + 4 + 256
PromptStr 701, STRING025, 25, Mask_Alpha(), 2 + 4 + 256
PromptStr 702, STRING026, 10, Mask_Alpha(), 2 + 4 + 256
PromptStr 703, STRING027, 10, Mask_Alpha(), 2 + 4 + 256
PromptStr 704, STRING028, 15, Mask_Alpha(), 2 + 4 + 256
INTEGER005 = FNext()
FCreate INTEGER005, STRING016, 1, 3
FPutLn INTEGER005, STRING022
FPutLn INTEGER005, "has requested you mail the Request Registration Form."
FPutLn INTEGER005, "The following address info was provided:"
FPutLn INTEGER005, ""
FPutLn INTEGER005, STRING022
FPutLn INTEGER005, STRING023
If (Trim(STRING024, " ") <> "") FPutLn INTEGER005, STRING024
FPutLn INTEGER005, Trim(STRING025, " ") + ", " + STRING026 + " " + STRING027
FPutLn INTEGER005, STRING028
FClose INTEGER005
:LABEL006
Newlines 2
PrintLn "@X0DSending Message to Sysop@X07"
Message S2I(STRING020, "10"), STRING019, STRING018, STRING021, STRING017, 0, 0, 0, STRING016
Cls
PrintLn "@X0AThank you..."
PrintLn "Now Logging off...@X07"
Endif
:LABEL007
Bye
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 2 End
; 3 Cls
; 16 Goto
; 44 Let
; 6 PrintLn
; 15 If
; 1 DispFile
; 2 FCreate
; 3 FOpen
; 5 FClose
; 1 FGet
; 11 FPutLn
; 1 Log
; 2 InputStr
; 2 InputYN
; 8 PromptStr
; 4 Newline
; 2 Newlines
; 1 DispText
; 1 Bye
; 1 Message
; 2 FSeek
; 2 FRead
; 4 EndFunc
; 1 Command
;
;
; ■ Functions used :
;
; 38 +
; 1 -
; 11 ==
; 3 <>
; 5 !
; 1 &&
; 1 ||
; 3 Upper()
; 2 Left()
; 1 Right()
; 2 Ferr()
; 6 Trim()
; 2 NoChar()
; 9 Mask_Alpha()
; 3 PCBDat()
; 2 PPEPath()
; 3 ReadLine()
; 4 GetEnv()
; 1 S2I()
; 1 Abs()
; 2 PPEName()
; 4 FNext()
;
;------------------------------------------------------------------------------
;
; Analysis flags : d
;
; d - Access PCBOARD.DAT ■ 2
; Program gets the full pathname to PCBOARD.DAT, this may be usefull
; for many PPE so they can find various informations on the system
; (system paths, max number of lines in messages, ...) but it may also
; be a way to gather vital informations.
; ■ Search for : PCBDAT()
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 0 While/EndWhile
; 4 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------